package com.zhiche.lisa.bms.pojo.vo.driver;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.DecimalMax;
import javax.validation.constraints.DecimalMin;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;
import java.util.Date;

/**
 * @FileName: cn.huiyunche.base.service.vo
 * @Description: 车型油耗变更列表vo
 * @author: Aaron
 * @date: 2017/3/13 下午10:16
 */
@Data
@ApiModel(value = "车型油耗变更列表vo", description = "车型油耗变更列表vo")
public class PriceconfOcVO {

	@ApiModelProperty(value = "id", name = "id", dataType = "Integer", example = "1")
	private Integer Id;

	/**
	 * 车型分类主键
	 */
	@NotNull(message = "请选择车型")
	@Min(value = 1, message = "车型主键必须大于0")
	@ApiModelProperty(value = "车型分类主键", name = "vehicleTypeId", dataType = "Integer")
	private Integer vehicleTypeId;

	/**
	 * 车型分类名称
	 */
	@ApiModelProperty(value = "车型分类名称", name = "vehicleClassifyName", dataType = "String")
	private String vehicleClassifyName;

	/**
	 * 燃油类型主键
	 */
	@ApiModelProperty(value = "燃油类型主键", name = "fuelTypeId", dataType = "Integer")
	private Integer fuelTypeId;

	/**
	 * 燃油类型名称
	 */
	@ApiModelProperty(value = "燃油类型名称", name = "fuelTypeName", dataType = "String")
	private String fuelTypeName;

	/**
	 * 油耗
	 */
	@NotNull(message = "请输入油耗")
	@DecimalMin(value = "0.01", message = "油耗必须大于0.01升")
	@DecimalMax(value = "10000", message = "油耗必须小于10000升")
	@ApiModelProperty(value = "油耗", name = "currentValue", dataType = "BigDecimal")
	private BigDecimal currentValue;

	/**
	 * 生效时间
	 */
	@NotNull(message = "请输入生效时间")
	private Date effectiveDate;

	@ApiModelProperty(value = "失效时间", name = "invalidDate", dataType = "Date")
	private Date invalidDate;

	/**
	 * 创建时间
	 */
	@ApiModelProperty(value = "创建时间", name = "gmtCreate", dataType = "Date")
	private Date gmtCreate;

	/**
	 * 更新时间
	 */
	@ApiModelProperty(value = "更新时间", name = "gmtUpdate", dataType = "Date")
	private Date gmtUpdate;

	/**
	 * 创建人
	 */
	@ApiModelProperty(value = "创建人", name = "creator", dataType = "String")
	private String creator;

}
